﻿<UserControl x:Class="EffectiveCapacityReport.LossByMonth"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerikChart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting"
    xmlns:telerikCharting="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="style/style.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>

    <!--<StackPanel x:Name="LayoutRoot" Background="#2a2f36"  >-->
        <telerikChart:RadChart x:Name="testChart" Style="{StaticResource ChartStyle}" TitleStyle="{StaticResource ChartTitleStyle}" LegendStyle="{StaticResource ChartLegendStyle}" MouseLeftButtonDown="testChart_MouseLeftButtonDown">
            <telerikChart:RadChart.DefaultView>
                <telerikCharting:ChartDefaultView ChartLegendPosition="Top">

                    <telerikCharting:ChartDefaultView.ChartTitle>
                        <telerikCharting:ChartTitle Content="Umm Shaif  Losses(monthly)" HorizontalAlignment="Stretch"/>
                    </telerikCharting:ChartDefaultView.ChartTitle>

                    <telerikCharting:ChartDefaultView.ChartLegend>
                        <telerikCharting:ChartLegend x:Name="chartLegend" Header=""/>
                    </telerikCharting:ChartDefaultView.ChartLegend>

                    <telerikCharting:ChartDefaultView.ChartArea>


                        <telerikCharting:ChartArea LegendName="chartLegend"   PlotAreaStyle="{StaticResource ClipPanelStyle}" SmartLabelsEnabled="True"
                                                   >

                            <telerikCharting:ChartArea.AxisX>
                                <telerikCharting:AxisX Title="" IsDateTime="False" LayoutMode="Between">
                                    <telerikCharting:AxisX.AxisStyles>
                                        <telerikCharting:AxisStyles AxisLineStyle="{StaticResource AxisLineStyle}" TickLineStyle="{StaticResource AxisTickStyle}" GridLineStyle="{StaticResource GridLineStyle}" ItemLabelStyle="{StaticResource XItemLabelStyle}" TitleStyle="{StaticResource AxisTitleStyle}">
                                        </telerikCharting:AxisStyles>
                                    </telerikCharting:AxisX.AxisStyles>
                                </telerikCharting:AxisX>
                            </telerikCharting:ChartArea.AxisX>

                            <telerikCharting:ChartArea.AxisY>
                                <telerikCharting:AxisY Title="MBD"  StripLinesVisibility="Collapsed" MajorGridLinesVisibility="Visible" MinorTicksVisibility="Collapsed" ExtendDirection="None" >
                                    <telerikCharting:AxisY.AxisStyles>
                                        <telerikCharting:AxisStyles AxisLineStyle="{StaticResource AxisLineStyle}" TickLineStyle="{StaticResource AxisTickStyle}" GridLineStyle="{StaticResource GridLineStyle}" ItemLabelStyle="{StaticResource YItemLabelStyle}" TitleStyle="{StaticResource AxisTitleStyle}">
                                        </telerikCharting:AxisStyles>
                                    </telerikCharting:AxisY.AxisStyles>
                                </telerikCharting:AxisY>
                            </telerikCharting:ChartArea.AxisY>

                            <telerikCharting:ChartArea.DataSeries>

                                <telerikCharting:DataSeries LegendLabel="Res.Cap"  >
                                    <telerikCharting:DataSeries.Definition >
                                        <telerikCharting:LineSeriesDefinition >
                                            <telerikCharting:LineSeriesDefinition.Appearance>
                                                <telerikCharting:SeriesAppearanceSettings Stroke="Red"  StrokeThickness="2" Fill="Transparent"/>

                                            </telerikCharting:LineSeriesDefinition.Appearance>
                                        </telerikCharting:LineSeriesDefinition>
                                    </telerikCharting:DataSeries.Definition>

                                    <telerikCharting:DataPoint YValue="328" XCategory="Jan"/>
                                    <telerikCharting:DataPoint YValue="302" XCategory="Feb"/>
                                    <telerikCharting:DataPoint YValue="304" XCategory="Mar"/>
                                    <telerikCharting:DataPoint YValue="300" XCategory="Apr"/>
                                    <telerikCharting:DataPoint YValue="330" XCategory="May"/>
                                    <telerikCharting:DataPoint YValue="335" XCategory="Jun"/>
                                    <telerikCharting:DataPoint YValue="325" XCategory="Jul"/>
                                    <telerikCharting:DataPoint YValue="313" XCategory="Aug"/>
                                    <telerikCharting:DataPoint YValue="332" XCategory="Sep"/>
                                    <telerikCharting:DataPoint YValue="350" XCategory="Oct"/>
                                    <telerikCharting:DataPoint YValue="354" XCategory="Nov"/>
                                    <telerikCharting:DataPoint YValue="340" XCategory="Dec"/>

                                </telerikCharting:DataSeries>

                                <telerikCharting:DataSeries LegendLabel="Eff.Cap" >
                                    <telerikCharting:DataSeries.Definition>
                                        <telerikCharting:LineSeriesDefinition >
                                            <telerikCharting:LineSeriesDefinition.Appearance>
                                                <telerikCharting:SeriesAppearanceSettings Stroke="Yellow" StrokeThickness="2" Fill="Transparent"/>
                                            </telerikCharting:LineSeriesDefinition.Appearance>
                                        </telerikCharting:LineSeriesDefinition>
                                    </telerikCharting:DataSeries.Definition>

                                    <telerikCharting:DataPoint YValue="284" XCategory="Jan"/>
                                    <telerikCharting:DataPoint YValue="302" XCategory="Feb"/>
                                    <telerikCharting:DataPoint YValue="299" XCategory="Mar"/>
                                    <telerikCharting:DataPoint YValue="277" XCategory="Apr"/>
                                    <telerikCharting:DataPoint YValue="275" XCategory="May"/>
                                    <telerikCharting:DataPoint YValue="275" XCategory="Jun"/>
                                    <telerikCharting:DataPoint YValue="270" XCategory="Jul"/>
                                    <telerikCharting:DataPoint YValue="260" XCategory="Aug"/>
                                    <telerikCharting:DataPoint YValue="265" XCategory="Sep"/>
                                    <telerikCharting:DataPoint YValue="260" XCategory="Oct"/>
                                    <telerikCharting:DataPoint YValue="260" XCategory="Nov"/>
                                    <telerikCharting:DataPoint YValue="260" XCategory="Dec"/>

                                </telerikCharting:DataSeries>

                                <telerikCharting:DataSeries LegendLabel="Monitor" >
                                    <telerikCharting:DataSeries.Definition>
                                        <telerikCharting:StackedBarSeriesDefinition StackGroupName="DivisionLoss" ShowItemToolTips="True" ShowItemLabels="False" >
                                            <telerikCharting:StackedBarSeriesDefinition.Appearance>
                                                <telerikCharting:SeriesAppearanceSettings Fill="Orange"/>
                                            </telerikCharting:StackedBarSeriesDefinition.Appearance>
                                            <telerikCharting:StackedBarSeriesDefinition.LabelSettings>
                                                <telerikCharting:BarLabelSettings   LabelDisplayMode="Inside" />
                                            </telerikCharting:StackedBarSeriesDefinition.LabelSettings>
                                        </telerikCharting:StackedBarSeriesDefinition>
                                    </telerikCharting:DataSeries.Definition>

                                    <telerikCharting:DataPoint YValue="5" XCategory="Jan"/>
                                    <telerikCharting:DataPoint YValue="9" XCategory="Feb"/>
                                    <telerikCharting:DataPoint YValue="8" XCategory="Mar"/>
                                    <telerikCharting:DataPoint YValue="4" XCategory="Apr"/>
                                    <telerikCharting:DataPoint YValue="13" XCategory="May"/>
                                    <telerikCharting:DataPoint YValue="4" XCategory="Jun"/>
                                    <telerikCharting:DataPoint YValue="2" XCategory="Jul"/>
                                    <telerikCharting:DataPoint YValue="7" XCategory="Aug"/>
                                    <telerikCharting:DataPoint YValue="3" XCategory="Sep"/>
                                    <telerikCharting:DataPoint YValue="6" XCategory="Oct"/>
                                    <telerikCharting:DataPoint YValue="4" XCategory="Nov"/>
                                    <telerikCharting:DataPoint YValue="4" XCategory="Dec"/>
                                </telerikCharting:DataSeries>



                                <telerikCharting:DataSeries LegendLabel="Unplanned" >
                                    <telerikCharting:DataSeries.Definition>
                                        <telerikCharting:StackedBarSeriesDefinition StackGroupName="DivisionLoss" ShowItemLabels="False"  ShowItemToolTips="True">
                                            <telerikCharting:StackedBarSeriesDefinition.Appearance>
                                                <telerikCharting:SeriesAppearanceSettings Fill="DarkRed"/>
                                            </telerikCharting:StackedBarSeriesDefinition.Appearance>
                                            <telerikCharting:StackedBarSeriesDefinition.LabelSettings>
                                                <telerikCharting:BarLabelSettings  Distance="10" LabelDisplayMode="Outside" />
                                            </telerikCharting:StackedBarSeriesDefinition.LabelSettings>
                                        </telerikCharting:StackedBarSeriesDefinition>
                                    </telerikCharting:DataSeries.Definition>

                                    <telerikCharting:DataPoint YValue="12" XCategory="Jan"/>
                                    <telerikCharting:DataPoint YValue="11" XCategory="Feb"/>
                                    <telerikCharting:DataPoint YValue="21" XCategory="Mar"/>
                                    <telerikCharting:DataPoint YValue="9" XCategory="Apr"/>
                                    <telerikCharting:DataPoint YValue="21" XCategory="May"/>
                                    <telerikCharting:DataPoint YValue="9" XCategory="Jun"/>
                                    <telerikCharting:DataPoint YValue="15" XCategory="Jul"/>
                                    <telerikCharting:DataPoint YValue="23" XCategory="Aug"/>
                                    <telerikCharting:DataPoint YValue="10" XCategory="Sep"/>
                                    <telerikCharting:DataPoint YValue="15" XCategory="Oct"/>
                                    <telerikCharting:DataPoint YValue="18" XCategory="Nov"/>
                                    <telerikCharting:DataPoint YValue="11" XCategory="Dec"/>
                                </telerikCharting:DataSeries>

                                <telerikCharting:DataSeries LegendLabel="Drilling" >
                                    <telerikCharting:DataSeries.Definition>
                                        <telerikCharting:StackedBarSeriesDefinition StackGroupName="DivisionLoss" ShowItemToolTips="True" ShowItemLabels="False" >
                                            <telerikCharting:StackedBarSeriesDefinition.Appearance>
                                                <telerikCharting:SeriesAppearanceSettings Fill="Blue"/>
                                            </telerikCharting:StackedBarSeriesDefinition.Appearance>
                                            <telerikCharting:StackedBarSeriesDefinition.LabelSettings>
                                                <telerikCharting:BarLabelSettings  Distance="10" LabelDisplayMode="Outside" />
                                            </telerikCharting:StackedBarSeriesDefinition.LabelSettings>
                                        </telerikCharting:StackedBarSeriesDefinition>
                                    </telerikCharting:DataSeries.Definition>

                                    <telerikCharting:DataPoint YValue="23" XCategory="Jan"/>
                                    <telerikCharting:DataPoint YValue="10" XCategory="Feb"/>
                                    <telerikCharting:DataPoint YValue="10" XCategory="Mar"/>
                                    <telerikCharting:DataPoint YValue="13" XCategory="Apr"/>
                                    <telerikCharting:DataPoint YValue="14" XCategory="May"/>
                                    <telerikCharting:DataPoint YValue="14" XCategory="Jun"/>
                                    <telerikCharting:DataPoint YValue="10" XCategory="Jul"/>
                                    <telerikCharting:DataPoint YValue="14" XCategory="Aug"/>
                                    <telerikCharting:DataPoint YValue="14" XCategory="Sep"/>
                                    <telerikCharting:DataPoint YValue="13" XCategory="Oct"/>
                                    <telerikCharting:DataPoint YValue="15" XCategory="Nov"/>
                                    <telerikCharting:DataPoint YValue="18" XCategory="Dec"/>
                                </telerikCharting:DataSeries>

                                <telerikCharting:DataSeries LegendLabel="Projects" >
                                    <telerikCharting:DataSeries.Definition>
                                        <telerikCharting:StackedBarSeriesDefinition StackGroupName="DivisionLoss" ShowItemToolTips="True" ShowItemLabels="False" >
                                            <telerikCharting:StackedBarSeriesDefinition.Appearance>
                                                <telerikCharting:SeriesAppearanceSettings Fill="Green"/>
                                            </telerikCharting:StackedBarSeriesDefinition.Appearance>
                                            <telerikCharting:StackedBarSeriesDefinition.LabelSettings>
                                                <telerikCharting:BarLabelSettings  Distance="10" LabelDisplayMode="Outside" />
                                            </telerikCharting:StackedBarSeriesDefinition.LabelSettings>
                                        </telerikCharting:StackedBarSeriesDefinition>
                                    </telerikCharting:DataSeries.Definition>

                                    <telerikCharting:DataPoint YValue="6" XCategory="Jan"/>
                                    <telerikCharting:DataPoint YValue="6" XCategory="Feb"/>
                                    <telerikCharting:DataPoint YValue="4" XCategory="Mar"/>
                                    <telerikCharting:DataPoint YValue="8" XCategory="Apr"/>
                                    <telerikCharting:DataPoint YValue="6" XCategory="May"/>
                                    <telerikCharting:DataPoint YValue="8" XCategory="Jun"/>
                                    <telerikCharting:DataPoint YValue="21" XCategory="Jul"/>
                                    <telerikCharting:DataPoint YValue="26" XCategory="Aug"/>
                                    <telerikCharting:DataPoint YValue="20" XCategory="Sep"/>
                                    <telerikCharting:DataPoint YValue="44" XCategory="Oct"/>
                                    <telerikCharting:DataPoint YValue="36" XCategory="Nov"/>
                                    <telerikCharting:DataPoint YValue="36" XCategory="Dec"/>
                                </telerikCharting:DataSeries>

                                <telerikCharting:DataSeries LegendLabel="Maint" >
                                    <telerikCharting:DataSeries.Definition>
                                        <telerikCharting:StackedBarSeriesDefinition StackGroupName="DivisionLoss" ShowItemLabels="False" ShowItemToolTips="True">
                                            <telerikCharting:StackedBarSeriesDefinition.Appearance>
                                                <telerikCharting:SeriesAppearanceSettings Fill="CadetBlue"/>
                                            </telerikCharting:StackedBarSeriesDefinition.Appearance>
                                            <telerikCharting:StackedBarSeriesDefinition.LabelSettings>
                                                <telerikCharting:BarLabelSettings  Distance="10" LabelDisplayMode="Outside"/>
                                            </telerikCharting:StackedBarSeriesDefinition.LabelSettings>
                                        </telerikCharting:StackedBarSeriesDefinition>
                                    </telerikCharting:DataSeries.Definition>

                                    <telerikCharting:DataPoint YValue="5" XCategory="Jan"/>
                                    <telerikCharting:DataPoint YValue="11" XCategory="Feb"/>
                                    <telerikCharting:DataPoint YValue="12" XCategory="Mar"/>
                                    <telerikCharting:DataPoint YValue="11" XCategory="Apr"/>
                                    <telerikCharting:DataPoint YValue="12" XCategory="May"/>
                                    <telerikCharting:DataPoint YValue="12" XCategory="Jun"/>
                                    <telerikCharting:DataPoint YValue="17" XCategory="Jul"/>
                                    <telerikCharting:DataPoint YValue="15" XCategory="Aug"/>
                                    <telerikCharting:DataPoint YValue="14" XCategory="Sep"/>
                                    <telerikCharting:DataPoint YValue="15" XCategory="Oct"/>
                                    <telerikCharting:DataPoint YValue="19" XCategory="Nov"/>
                                    <telerikCharting:DataPoint YValue="20" XCategory="Dec"/>
                                </telerikCharting:DataSeries>

                                <telerikCharting:DataSeries LegendLabel="Integrity" >
                                    <telerikCharting:DataSeries.Definition>
                                        <telerikCharting:StackedBarSeriesDefinition StackGroupName="DivisionLoss" ShowItemLabels="False" ShowItemToolTips="True">
                                            <telerikCharting:StackedBarSeriesDefinition.Appearance>
                                                <telerikCharting:SeriesAppearanceSettings Fill="DarkViolet"/>
                                            </telerikCharting:StackedBarSeriesDefinition.Appearance>
                                            <telerikCharting:StackedBarSeriesDefinition.LabelSettings>
                                                <telerikCharting:BarLabelSettings  Distance="10" LabelDisplayMode="Outside"/>
                                            </telerikCharting:StackedBarSeriesDefinition.LabelSettings>
                                        </telerikCharting:StackedBarSeriesDefinition>
                                    </telerikCharting:DataSeries.Definition>

                                    <telerikCharting:DataPoint YValue="14" XCategory="Jan"/>
                                    <telerikCharting:DataPoint YValue="13" XCategory="Feb"/>
                                    <telerikCharting:DataPoint YValue="15" XCategory="Mar"/>
                                    <telerikCharting:DataPoint YValue="10" XCategory="Apr"/>
                                    <telerikCharting:DataPoint YValue="19" XCategory="May"/>
                                    <telerikCharting:DataPoint YValue="19" XCategory="Jun"/>
                                    <telerikCharting:DataPoint YValue="14" XCategory="Jul"/>
                                    <telerikCharting:DataPoint YValue="20" XCategory="Aug"/>
                                    <telerikCharting:DataPoint YValue="13" XCategory="Sep"/>
                                    <telerikCharting:DataPoint YValue="10" XCategory="Oct"/>
                                    <telerikCharting:DataPoint YValue="0" XCategory="Nov"/>
                                    <telerikCharting:DataPoint YValue="0" XCategory="Dec"/>
                                </telerikCharting:DataSeries>


                                <telerikCharting:DataSeries LegendLabel="sum" >
                                    <telerikCharting:DataSeries.Definition>
                                        <telerikCharting:ScatterSeriesDefinition  ShowItemLabels="True" SeriesItemLabelStyle="{StaticResource SumSeriesItemLabelStyle}">
                                            <telerikCharting:ScatterSeriesDefinition.Appearance>
                                                <telerikCharting:SeriesAppearanceSettings Fill="Transparent"/>
                                            </telerikCharting:ScatterSeriesDefinition.Appearance>                                                                                  
                                    </telerikCharting:ScatterSeriesDefinition>
                                    </telerikCharting:DataSeries.Definition>

                                <telerikCharting:DataPoint YValue="79" XCategory="Jan"  Label="65"/>
                                <telerikCharting:DataPoint YValue="70" XCategory="Feb" Label="60" />
                                <telerikCharting:DataPoint YValue="80" XCategory="Mar" Label="70"/>
                                <telerikCharting:DataPoint YValue="65" XCategory="Apr" Label="55"/>
                                <telerikCharting:DataPoint YValue="95" XCategory="May" Label="85"/>
                                <telerikCharting:DataPoint YValue="76" XCategory="Jun" Label="66"/>
                                <telerikCharting:DataPoint YValue="90" XCategory="Jul" Label="70"/>
                                <telerikCharting:DataPoint YValue="115" XCategory="Aug" Label="105"/>
                                <telerikCharting:DataPoint YValue="84" XCategory="Sep" Label="74"/>
                                <telerikCharting:DataPoint YValue="112" XCategory="Oct" Label="102"/>
                                <telerikCharting:DataPoint YValue="102" XCategory="Nov" Label="92"/>
                                <telerikCharting:DataPoint YValue="99" XCategory="Dec" Label="89"/>
                                </telerikCharting:DataSeries>


                            </telerikCharting:ChartArea.DataSeries>
                        </telerikCharting:ChartArea>
                    </telerikCharting:ChartDefaultView.ChartArea>
                </telerikCharting:ChartDefaultView>
            </telerikChart:RadChart.DefaultView>

        </telerikChart:RadChart>

    <!--</StackPanel>-->
</UserControl>
